package com.rocksdata.mc.entity;

import java.io.Serializable;
import java.util.List;

/**
 * Created by 陈堂正 on 2017/5/18.
 */

public class OABaseInfo implements Serializable {
    /**
     * 待审核
     */
    public static final int RESULT_REVIEWING = 0;

    /**
     * 审核通过
     */
    public static final int RESULT_PASS = 1;

    /**
     * 审核拒绝
     */
    public static final int RESULT_REFUSE = 2;

    /**
     * 流程中，还未轮到当前用户审核
     */
    public static final int REVIEW_IN_PROCESS = 3;

    /**
     * 故障维修
     */
    public static final int TYPE_REPAIR = 1;

    /**
     * 调课
     */
    public static final int TYPE_RESCHEDULE_COURSE  = 2;

    /**
     * 代课
     */
    public static final int TYPE_SUBSTITUTE_COURSE  = 3;

    /**
     * 请假
     */
    public static final int TYPE_LEAVE = 4;

    private String code;
    private String proposerCode;
    private String proposerName;
    private String proposeTime;
    private int type;
    private int result;
    private String comment;
    private String reason;
    private List<OAAuditionInfo> audit;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getProposerCode() {
        return proposerCode;
    }

    public void setProposerCode(String proposerCode) {
        this.proposerCode = proposerCode;
    }

    public String getProposerName() {
        return proposerName;
    }

    public void setProposerName(String proposerName) {
        this.proposerName = proposerName;
    }

    public String getProposeTime() {
        return proposeTime;
    }

    public void setProposeTime(String proposeTime) {
        this.proposeTime = proposeTime;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getResult() {
        return result;
    }

    public void setResult(int result) {
        this.result = result;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public List<OAAuditionInfo> getAudit() {
        return audit;
    }

    public void setAudit(List<OAAuditionInfo> audit) {
        this.audit = audit;
    }

    @Override
    public boolean equals(Object o) {
        try {
            OABaseInfo info = (OABaseInfo) o;
            return info.getCode().equals(code);
        }catch (Exception e) {
            return false;
        }
    }
}
